package pers.leo.couplepointjava.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.leo.couplepointjava.core.consts.Constants;

/**
 * 首页控制器
 *
 * @author Leo
 * @date 2021/8/24
 */
@Controller
@RestController
@RequestMapping("/")
public class IndexController {

    @GetMapping({"", "index*", "default*"})
    public String index() {
        return Constants.INDEX_MESSAGE;
    }

}
